import { ReactNode } from 'react';
import { Link } from 'react-router-dom';
import { routerPaths } from '../router';

export default ({ children }: { children: ReactNode }) => {
  return (
    <div className='base-layout'>
      <h3>
        <Link
          to={routerPaths.home}
          style={{ textDecoration: 'none', color: 'blue' }}
        >
          back to home
        </Link>
      </h3>
      {children}
    </div>
  );
};
